cmake_minimum_required(VERSION 3.16)

project(ODBC LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_executable(ODBC main.cpp)

# include_directories可加
# 链接odbc32库
target_link_libraries(ODBC odbc32)


include(GNUInstallDirs)
install(TARGETS ODBC
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
